import { makeReducers } from '../utils';
import { createSlice } from '@reduxjs/toolkit';

// 初始值
const initialState = {
  age: 22,
  name: 'xzy',
  gender: 'famel',
};

// testSlice
export const testSlice = createSlice({
  name: 'test',
  initialState,
  reducers: makeReducers(initialState),
});

export const { actions: testActions, reducer: testReducer } = testSlice;
